﻿package twitter 
{
	/**
	 * ...
	 * @author s
	 */
	public class Tweet
	{
		private var _id: String;
		private var _userId: String;
		private var _userScreenName: String;
		private var _createdAt: Date;
		private var _text: String;
		
		private var _prevTweet:Tweet;
		private var _nextTweet:Tweet;
		
		public function Tweet(id:String, userId:String, userScreenName:String, createdAt:Date, text:String) 
		{
			_id = id;
			_userId	= userId;
			_userScreenName = userScreenName;
			_createdAt = createdAt;
			_text = text;
			
			_prevTweet = null;
			_nextTweet = null;
		}
		
		/*
		 * getter
		 */
		public function get id():String 
		{
			return _id;
		}
		
		public function get userId():String 
		{
			return _userId;
		}
		
		public function get userScreenName():String 
		{
			return _userScreenName;
		}
		
		public function get createdAt():Date 
		{
			return _createdAt;
		}
		
		public function get text():String 
		{
			return _text;
		}
		
		public function get prevTweet():Tweet 
		{
			return _prevTweet;
		}
		
		public function get nextTweet():Tweet
		{
			return _nextTweet;
		}
		
		internal function setPrevTweet(val:Tweet):void
		{
			_prevTweet = val;
		}
		
		internal function setNextTweet(val:Tweet):void 
		{
			_nextTweet = val;
		}
	}

}